package com.hydl.power.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hydl.power.pojo.CabinetDevice;
import com.hydl.power.pojo.Capacitance;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wxx
 * @since 2021-03-03
 */
public interface CapacitanceMapper extends BaseMapper<Capacitance> {

    CabinetDevice getCabinetDeviceNumber(String cabinetId, String projectId, String powerRoomId);

    List<Capacitance> getDeviceList(String cabinetId);

    void addCapacitance(Capacitance capacitance);

    void updateCapacitance(Integer id, String name, String manufactor, String serialNumber, String modelNumber, String productionTime, String cabinetId, String projectId, String projectName, String powerRoomId, String powerRoomName, String ratedCapacity, String ratedCapacitance, String ratedVoltage, String ratedCurrent);

    void deleteCapacitance(Integer id);

    List<CabinetDevice> getDeviceByProjectId(String projectId);
}
